package model.simulation;

import model.AbstractDepartment;

//D级单位
public class SiDDepartment extends SiDepartment
{
	String aName;

	String bName;

	String cName;

	String dName;

	public SiDDepartment(SiModel model)
	{
		this.aName = model.getaName();
		this.bName = model.getbName();
		this.cName = model.getcName();
		this.dName = model.getdName();
	}

	@Override
	public boolean hasSubDepartment()
	{
		return false;
	}

	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		return false;
	}

	@Override
	public String departmentName()
	{
		return aName + bName + cName + dName;
	}

	public boolean isModelInThisDDepartment(SiModel model)
	{
		return aName.equals(model.getaName()) && bName.equals(model.getbName())
				&& cName.equals(model.getcName())
				&& dName.equals(model.getdName());
	}
}
